﻿CREATE TRIGGER LoanCases_Tracking_Delete
ON [dbo].[LoanCases] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanCases_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanCases_Tracking s JOIN DELETED i
    ON s.LoanCaseID = i.LoanCaseID
END











